.search-page {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.search-container {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.search-header {
    margin-bottom: 30px;
    text-align: center;
}

.search-header h1 {
    color: #333;
    margin-bottom: 20px;
}

.search-form {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
}

.search-input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    font-size: 16px;
    outline: none;
}

.search-button {
    padding: 12px 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.search-button:hover {
    background-color: #45a049;
}

.search-button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

.error-message {
    color: #d32f2f;
    background-color: #fde0e0;
    padding: 10px 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    text-align: center;
}

.results-container {
    margin-top: 30px;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.torrent-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.torrent-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.torrent-cover {
    height: 180px;
    overflow: hidden;
}

.torrent-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.torrent-info {
    padding: 15px;
}

.torrent-title {
    margin: 0 0 10px;
    color: #333;
    font-size: 18px;
}

.torrent-description {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.torrent-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
    font-size: 12px;
    color: #888;
}

.torrent-category {
    background-color: #e3f2fd;
    padding: 3px 8px;
    border-radius: 4px;
}

.torrent-tags {
    background-color: #f3e5f5;
    padding: 3px 8px;
    border-radius: 4px;
}

.torrent-time {
    margin-left: auto;
}

.download-button {
    display: inline-block;
    padding: 8px 15px;
    background-color: #2196F3;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    transition: background-color 0.3s;
}

.download-button:hover {
    background-color: #0b7dda;
}

.no-results {
    text-align: center;
    padding: 40px;
    color: #888;
    font-size: 18px;
}

@media (max-width: 768px) {
    .search-form {
        flex-direction: column;
    }

    .search-input {
        border-radius: 4px;
        margin-bottom: 10px;
    }

    .search-button {
        border-radius: 4px;
    }

    .results-grid {
        grid-template-columns: 1fr;
    }
}